import 'package:flutter/material.dart';
import 'package:interview/components/swiper_box.dart';
import 'package:interview/config/app.enum.dart';

class HomeBanner extends StatelessWidget {
  const HomeBanner({super.key});
  @override
  Widget build(BuildContext context) {
    final screenWidth = MediaQuery.of(context).size.width;
    return Container(
      margin: const EdgeInsets.symmetric(vertical: 8),
      child: SwiperBox(
        imgList: const [
          '${AppEnumAssets.basePath}banner_ai.png',
          '${AppEnumAssets.basePath}banner_pj.png',
          '${AppEnumAssets.basePath}banner_qa.png',
        ],
        width: screenWidth - 32,
        height: (screenWidth - 32) * 0.38,
      ),
    );
  }
}
